﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class SYS_FUNCTION : BusinessObject
    {
        public int FunctionID { get; set; }
        public string FunctionName { get; set; }
        public string FunctionClass { get; set; }
        public bool? IsUse { get; set; }

        public SYS_FUNCTION()
        {
            AddRule(new ValidateRequired("FunctionClass"));
            AddRule(new ValidateRequired("FunctionName"));
        }

        public SYS_FUNCTION(int functionID, string functionName, string functionClass, bool? isUse)
            : this()
        {
            FunctionID = functionID;
            FunctionName = functionName;
            FunctionClass = functionClass;
            IsUse = isUse;
        }
    }
}
